<template>
  <div id="app">
    <siteHead :key="$route.fullPath"></siteHead>
    <!-- <div class="app_content">
      <router-view />
    </div> -->

    <!-- <siteFoot></siteFoot> -->
  </div>
</template>
<script>
import siteHead from '@/components/globalComponents/siteHead'
// import siteFoot from '@/components/globalComponents/siteFoot'
export default {
  data() {
    return {}
  },
  components: {
    siteHead,
    // siteFoot
  },
  methods: {},
  mounted() {
  },
  created() {
    let userInfo = JSON.parse(localStorage.getItem('zzr_user'));
    if (userInfo && userInfo.id) {
      this.$store.commit("login", userInfo);
      //this.$router.push({ path: "/index" });
    }
  }
}
</script>
<style lang="stylus">
.app_content
  min-height calc(100vh - 126px)
  position relative
  .index_content
    display flex
    padding 20px 0 0
</style>
<style lang="less" scoped>
// 意思是，选中"子元素中含有id为paySuccess的id为app的元素、其元素下相邻子元素div标签中排除class为app_content的所有元素"
// 听说:has不兼容火狐浏览器
#app:has(#paySuccess)>div:not(.app_content) {
  display: none;
}
#app:has(#capepay)>div:not(.app_content) {
  display: none;
}
// .app_content:has(#paySuccess) {
//   background: blue !important
// }
</style>